package com.myproject.thread.join;

public class Test3 {

    public static void main(String[] args) throws InterruptedException {

        //自己阻塞自己，相当于获得锁后，通过wait挂起
        System.out.println("start");
        Thread.currentThread().join();
        Thread.currentThread().join(2000);
        System.out.println("end");


    }
}
